﻿using System;
using RPC;

namespace Playground {
	[RPCID(1011)]
	public class RPCLoginResponse : RPCMessage {
		#region Fields
		private Boolean _status;
		#endregion
		#region Public
		public override void WriteData(RPCWriter w) {
			w.Write(this.Status);
		}
		public override void ReadData(RPCReader r) {
			this.Status = r.ReadBoolean();
		}
		#endregion
		#region Property
		/// <summary>
		/// Gets or sets a value indicating whether username/password was accepted
		/// </summary>
		/// <value><c>true</c> if status; otherwise, <c>false</c>.</value>
		public Boolean Status {
			get {
				return _status;
			}
			set {
				_status = value;
			}
		}
		#endregion
	}
}
